/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.triumphsys.icici.cmeeting.portlet.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal;

/**
 * The persistence interface for the c m others proposal service.
 *
 * <p>
 * Never modify or reference this interface directly. Always use {@link CMOthersProposalUtil} to access the c m others proposal persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
 * </p>
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Triumphsys
 * @see CMOthersProposalPersistenceImpl
 * @see CMOthersProposalUtil
 * @generated
 */
public interface CMOthersProposalPersistence extends BasePersistence<CMOthersProposal> {
	/**
	* Caches the c m others proposal in the entity cache if it is enabled.
	*
	* @param cmOthersProposal the c m others proposal to cache
	*/
	public void cacheResult(
		com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal cmOthersProposal);

	/**
	* Caches the c m others proposals in the entity cache if it is enabled.
	*
	* @param cmOthersProposals the c m others proposals to cache
	*/
	public void cacheResult(
		java.util.List<com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal> cmOthersProposals);

	/**
	* Creates a new c m others proposal with the primary key. Does not add the c m others proposal to the database.
	*
	* @param othersProposalId the primary key for the new c m others proposal
	* @return the new c m others proposal
	*/
	public com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal create(
		long othersProposalId);

	/**
	* Removes the c m others proposal with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param othersProposalId the primary key of the c m others proposal to remove
	* @return the c m others proposal that was removed
	* @throws com.triumphsys.icici.cmeeting.portlet.NoSuchCMOthersProposalException if a c m others proposal with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal remove(
		long othersProposalId)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.triumphsys.icici.cmeeting.portlet.NoSuchCMOthersProposalException;

	public com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal updateImpl(
		com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal cmOthersProposal,
		boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the c m others proposal with the primary key or throws a {@link com.triumphsys.icici.cmeeting.portlet.NoSuchCMOthersProposalException} if it could not be found.
	*
	* @param othersProposalId the primary key of the c m others proposal to find
	* @return the c m others proposal
	* @throws com.triumphsys.icici.cmeeting.portlet.NoSuchCMOthersProposalException if a c m others proposal with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal findByPrimaryKey(
		long othersProposalId)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.triumphsys.icici.cmeeting.portlet.NoSuchCMOthersProposalException;

	/**
	* Finds the c m others proposal with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param othersProposalId the primary key of the c m others proposal to find
	* @return the c m others proposal, or <code>null</code> if a c m others proposal with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal fetchByPrimaryKey(
		long othersProposalId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds all the c m others proposals where proposalId = &#63;.
	*
	* @param proposalId the proposal id to search with
	* @return the matching c m others proposals
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal> findByproposalId(
		long proposalId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the c m others proposals where proposalId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param proposalId the proposal id to search with
	* @param start the lower bound of the range of c m others proposals to return
	* @param end the upper bound of the range of c m others proposals to return (not inclusive)
	* @return the range of matching c m others proposals
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal> findByproposalId(
		long proposalId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the c m others proposals where proposalId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param proposalId the proposal id to search with
	* @param start the lower bound of the range of c m others proposals to return
	* @param end the upper bound of the range of c m others proposals to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching c m others proposals
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal> findByproposalId(
		long proposalId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first c m others proposal in the ordered set where proposalId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param proposalId the proposal id to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching c m others proposal
	* @throws com.triumphsys.icici.cmeeting.portlet.NoSuchCMOthersProposalException if a matching c m others proposal could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal findByproposalId_First(
		long proposalId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.triumphsys.icici.cmeeting.portlet.NoSuchCMOthersProposalException;

	/**
	* Finds the last c m others proposal in the ordered set where proposalId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param proposalId the proposal id to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching c m others proposal
	* @throws com.triumphsys.icici.cmeeting.portlet.NoSuchCMOthersProposalException if a matching c m others proposal could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal findByproposalId_Last(
		long proposalId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.triumphsys.icici.cmeeting.portlet.NoSuchCMOthersProposalException;

	/**
	* Finds the c m others proposals before and after the current c m others proposal in the ordered set where proposalId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param othersProposalId the primary key of the current c m others proposal
	* @param proposalId the proposal id to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next c m others proposal
	* @throws com.triumphsys.icici.cmeeting.portlet.NoSuchCMOthersProposalException if a c m others proposal with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal[] findByproposalId_PrevAndNext(
		long othersProposalId, long proposalId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.triumphsys.icici.cmeeting.portlet.NoSuchCMOthersProposalException;

	/**
	* Finds all the c m others proposals.
	*
	* @return the c m others proposals
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the c m others proposals.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of c m others proposals to return
	* @param end the upper bound of the range of c m others proposals to return (not inclusive)
	* @return the range of c m others proposals
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal> findAll(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the c m others proposals.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of c m others proposals to return
	* @param end the upper bound of the range of c m others proposals to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of c m others proposals
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.triumphsys.icici.cmeeting.portlet.model.CMOthersProposal> findAll(
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the c m others proposals where proposalId = &#63; from the database.
	*
	* @param proposalId the proposal id to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByproposalId(long proposalId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the c m others proposals from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the c m others proposals where proposalId = &#63;.
	*
	* @param proposalId the proposal id to search with
	* @return the number of matching c m others proposals
	* @throws SystemException if a system exception occurred
	*/
	public int countByproposalId(long proposalId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the c m others proposals.
	*
	* @return the number of c m others proposals
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;
}